<div class="tootevalik">
	<div class="dropdown">
		<div class="dropdownleft"><img src="/enermaatik/img/dropleft.png" width="6" height="23" alt=""/></div>
		<div class="drop">

			<div class="droptext"><?php echo __('sorteeri') ?>: <?php echo array_search($sorting, $sortings) ?></div>
		</div>
		<div class="dropdownright"><img src="/enermaatik/img/dropright.png" width="25" height="23" alt=""/></div>
		<div class="clear"></div>
		<div class="hiddendrop">
			<div class="hiddenbox">
				<ul>
					<?php foreach ($sortings as $index => $value): ?>
					<li><a href="<?php echo LinkGen::getInstance(LinkGen::PRODUCT_GROUP)->link($category['id'],array('action' => 'sortBy','sort' => $value))  ?>"><?php echo $index ?></a></li>
					<?php endforeach; ?>
				</ul>
			</div>
		</div>

	</div>
	<div class="dropdown">
		<div class="dropdownleft"><img src="/enermaatik/img/dropleft.png" width="6" height="23" alt=""/></div>
		<div class="drop">
			<div class="droptext"><?php echo __('näita lehel') ?>: <?php echo $perpage ?></div>
		</div>
		<div class="dropdownright"><img src="/enermaatik/img/dropright.png" width="25" height="23" alt=""/></div>
		<div class="clear"></div>

		<div class="hiddendrop">
			<div class="hiddenbox">
				<ul>
					<?php foreach($showby as $index => $value): ?>
					<li><a href="<?php echo LinkGen::getInstance(LinkGen::PRODUCT_GROUP)->link($category['id'],array('action' => 'showBy','show' => $value))  ?>"><?php echo $index ?></a></li>
					<?php endforeach; ?>
				</ul>
			</div>
		</div>
	</div>
	<div class="clear"></div>
</div>